﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App_Clinique.ClassLibrary.Entities
{
    public partial class OperationChirurgicale : Document
    {
        public OperationChirurgicale()
        {
            this.DateOperation = DateTime.Now.Date;
        }

        [Column("DetailsOperation"), Required, StringLength(1000)]
        public virtual String DetailsOperation { get; set; }

        [Column("DateOperation"), Required]
        public virtual DateTime DateOperation { get; set; }

        /****************************************************************************************************
         * Foreign Keys - IDs
         ***************************************************************************************************/
        [Column("OperationChirurgicale_DossierMedicalID", Order = 3)]
        public virtual Nullable<Guid> DossierMedicalID { get; set; }

        /****************************************************************************************************
         * Foreign Keys - Reference Objects
         ***************************************************************************************************/
        public virtual DossierMedical DossierMedical { get; set; }

        /****************************************************************************************************
         * Collections
         ***************************************************************************************************/
    }
}
